cmake_minimum_required(VERSION 3.20)
project(CodeDefects)

if(MSVC)
    add_compile_options(/analyze)
endif(MSVC)

add_library(CodeDefects STATIC
    Bug.h
    Bug.cpp)

add_library(Annotations STATIC
    annotations.h
    annotations.cpp)

# Code analysis for C/C++ overview
# https://learn.microsoft.com/en-us/cpp/code-quality/code-analysis-for-c-cpp-overview?view=msvc-170

# Sample C++ project for code analysis
# https://learn.microsoft.com/en-us/cpp/code-quality/demo-sample?view=msvc-160

# /analyze (Code analysis)
# https://learn.microsoft.com/en-us/cpp/build/reference/analyze-code-analysis?view=msvc-170
